Skip to content

deps: clear all 35 dependabot alerts in the dev toolchain - #123

Merged
petersalomonsen merged 1 commit into
masterfrom
deps-clear-dependabot-alerts
Aug 21, 2026
Merged

petersalomonsen merged 1 commit into
masterfrom
deps-clear-dependabot-alerts

Conversation

@petersalomonsen

Copy link
Copy Markdown
Owner

Closes every open alert on https://github.com/petersalomonsen/wasm-git/security/dependabot.

Scope

All 35 alerts came from devDependencies in package-lock.json. The published package has no runtime dependencies — it ships only lg2*.js / lg2*.wasm — so consumers of wasm-git were never exposed. npm audit reported 27 vulnerabilities (2 critical, 22 high); it now reports 0.

Dependency changes

Package From To Clears
mocha ^10.2.0 ^11.8.0 js-yaml, minimatch, nanoid, diff
@web/test-runner ^0.20.2 ^1.0.0 koa, rollup, ws
@web/test-runner-playwright ^0.11.1 ^1.0.0 follows 1.0
@playwright/test ^1.58.2 ^1.62.1 locked version was stale

Three overrides cover advisories the direct dependency still points at:

  • puppeteer-core: ^25.8.0 — pulls in @puppeteer/browsers 3.x, which replaced extract-zip with modern-tar. extract-zip has no patched release, so an override is the only way out of that advisory.
  • serialize-javascript: ^7.1.0 and diff: ^8.0.4 — mocha 11 still depends on the vulnerable v6/v7 lines.

Each of the 35 alerted packages is now either gone from the tree or at/above its patched version.

Two things the refresh surfaced

Firefox and WebKit now ship JSPI. Playwright 1.62 brings Firefox 153 and WebKit 26.5, both of which expose WebAssembly.Suspending/promising. The loader therefore selects the jspi build there rather than asyncify — and it genuinely works: the functional clone through the JSPI build passes in both engines. The loader matrix expected asyncify unconditionally, so it now derives the expectation from detected JSPI support via variantWithoutJspi, keeping the suite correct on engines without JSPI as well.

Node version in CI. main.yml never set up Node and inherited the runner default. @web/test-runner@1.0.0 requires Node >=22, so actions/setup-node@v4 with node-version: '24' is now pinned in the five jobs that run npm — the same thing publish.yml already does.

Verification

All suites run locally and pass: test (14), test-opfs-detect (8), test-browser (18), test-browser-async (10), test-browser-opfs (6), test-browser-opfs-noniso (18), test-opfs-loader (4/4, including firefox and webkit) and test-opfs-example (1).

🤖 Generated with Claude Code

Every open alert came from devDependencies in package-lock.json — the
published package has no runtime dependencies, so consumers were never
exposed. npm audit reported 27 vulnerabilities (2 critical, 22 high).

Upgrades: mocha 10 -> 11, @web/test-runner(-playwright) 0.x -> 1.0,
@playwright/test 1.58 -> 1.62.

Overrides are needed where the direct dependency still points at a
vulnerable major:
  - puppeteer-core ^25 pulls @puppeteer/browsers 3.x, which replaced
    extract-zip with modern-tar. extract-zip has no patched release at
    all, so an override is the only way out of that advisory.
  - serialize-javascript ^7.1.0 and diff ^8.0.4: mocha 11 still depends
    on the vulnerable v6/v7 lines.

npm audit is now clean, and each of the 35 alerted packages is either
gone from the tree or at/above its patched version.

Two things the refresh surfaced:

Firefox 153 and WebKit 26.5 (shipped with Playwright 1.62) now expose
WebAssembly.Suspending/promising, so the loader selects the JSPI build
there instead of ASYNCIFY — and it works: the functional clone passes in
both. The loader matrix expected 'asyncify' unconditionally; it now
derives the expectation from detected JSPI support via
variantWithoutJspi, so it stays correct on engines without JSPI too.

main.yml never set up Node and inherited the runner default.
@web/test-runner 1.0 requires Node >=22, so pin node-version 24 in the
five jobs that run npm, matching what publish.yml already does.

All suites pass locally: test, test-opfs-detect, test-browser,
test-browser-async, test-browser-opfs, test-browser-opfs-noniso,
test-opfs-loader (including firefox and webkit) and test-opfs-example.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@petersalomonsen
petersalomonsen merged commit a91915a into master Aug 21, 2026
6 checks passed
@petersalomonsen
petersalomonsen deleted the deps-clear-dependabot-alerts branch August 21, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant